class SmallBodyParametersForeignKeys < ActiveRecord::Migration
  def self.up
  	execute "ALTER TABLE small_body_parameters ADD CONSTRAINT fk_small_body_parameters_simulations 
  					FOREIGN KEY (simulation_id) REFERENCES simulations(id) ON DELETE CASCADE"
  end

  def self.down
  	execute "ALTER TABLE small_body_parameters DROP CONSTRAINT fk_small_body_parameters_simulations"
  end
end
